package com.yy.cloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @date 2024/5/6
 */
@RestController
@Slf4j
public class GoodsServiceController {

    @Value("${server.port}")
    private String port;

    @Value("${spring.application.name}")
    private String applicationName;

    @GetMapping("/goodsServiceTest")
    public String goodsService() {
        log.info("服务：{}，端口号：{} 被调用了.", applicationName, port);
        return applicationName + ":" + port;
    }
}
